from fpioa_manager import fm
from machine import UART

uart2 = None
def uart_init():
    global uart2
    fm.register(30, fm.fpioa.UART2_TX)
    fm.register(31, fm.fpioa.UART2_RX)
    uart2 = UART(UART.UART2, 115200, timeout=0xffff, read_buf_len = 64)